package com.sgx.learning.luban.homework.attributes;

import com.sgx.learning.luban.homework.basictype.U2;
import com.sgx.learning.luban.homework.constantpool.ConstantPoolInfo;

import java.io.IOException;
import java.io.InputStream;

public class SourceFile extends AttributeInfo {

    private short sourceFileIndex;

    @Override
    public void read(InputStream is, ConstantPoolInfo[] constantPoolInfos) throws IOException {
        this.sourceFileIndex = U2.read(is).getValue();
    }
}
